import numpy as np
import matplotlib.pyplot as plt
import matplotlib

zhfont = matplotlib.font_manager.FontProperties(
    fname="SIMYOU.TTF", size=20)

x = np.array([1, 2, 3, 4])
y = np.array([1, 4, 9, 16])
plt.plot(x, y)

plt.title("菜鸟测试", fontproperties=zhfont)
plt.xlabel("x - label", fontproperties=zhfont, loc="right")
plt.ylabel("y - label", fontproperties=zhfont, loc='top')

plt.grid(color='r', linestyle='--', linewidth=0.5)

plt.show()
